<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {



        });

    </script>

<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('product/desc', array('id'=>$productId))}">产品小节</a></li>
        <li><a href="{:U('product/addDesc', array('id'=>$productId))}">添加小节</a></li>
        <li style="float:right;"><a href="{:U('product/index')}">返回商品列表</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>产品名称</th>
            <th>阅读数</th>
            <th>标题</th>
            <th>副标题</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$product.product_name}</td>
                <td>{$vo.read_count}</td>
                <td>{$vo.title}</td>
                <td>{$vo.second_title}</td>
                <td>{$vo.create_time}</td>
                <td>
                    <a href='{:U("product/editDesc",array("id"=>$vo["desc_id"]))}'>修改</a>
                    <a class="J_ajax_del" href='{:U("product/removeDesc",array("id"=>$vo["desc_id"]))}'>删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>